/**
 * Copyright (C), 2015-2021, XXX有限公司
 * FileName: xuTestCreatServiceImpl
 * Author:   Administrator
 * Date:     2021/7/28 0028 15:02
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package cn.hxlc.tie.demo.modular.xjf.testEquipment.service.impl;


import cn.hxlc.tie.demo.modular.xjf.testEquipment.entity.creatTest;

import cn.hxlc.tie.demo.modular.xjf.testEquipment.mapper.xuTestCreatMapper;
import cn.hxlc.tie.demo.modular.xjf.testEquipment.model.Result.creatTestResult;

import cn.hxlc.tie.demo.modular.xjf.testEquipment.service.xuTestCreatService;
import cn.hxlc.tie.libs.mp.page.PageFactory;
import cn.hxlc.tie.model.page.PageResult;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author Administrator
 * @create 2021/7/28 0028
 * @since 1.0.0
 */
@Service
@Transactional
public class xuTestCreatServiceImpl extends ServiceImpl<xuTestCreatMapper, creatTest> implements xuTestCreatService {

    @Transactional(rollbackFor = Exception.class)
    @Override
    public void update(creatTest param) {
        this.updateById(param);

    }


    @Transactional(rollbackFor = Exception.class)
    @Override
    public PageResult<creatTestResult> queryDetail(creatTestResult param){


        Page<creatTestResult> workShopPage= PageFactory.defaultPage();
        IPage<creatTestResult> resultPage= this.baseMapper.queryListPage(workShopPage,param);

        return new PageResult<>(resultPage);
    }
    }